////////////////////////////////////////////////////////////////////////////////
// Copyright 2005 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   PO
// AUTHOR           :   Victor.zheng 
// DATE CREATE      :   2005/10/25
// DESCRIPTION      :   a CRITERIA file for the function, PO
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2005/10/25   Victor.zheng    1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.login.poEnquiry.criteria;

import com.erp.framework.model.criteria.SimplePageEditStyleSrchCriteria;

/**
* <p>A <strong>SrchCriteria</strong>
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the user search criteria input
* for database query.
*
* @author          Victor.zheng 
* @version 1.0     2005/10/25
* @since           FrameWork 1.0
*
*/

// Note:
// Currently only generates the first 5 fields of a table
// However, this number can be set in GenConstants.NO_CRITERIA

public class PoEnquirySrchCriteria extends SimplePageEditStyleSrchCriteria {

	//Searching Criteria Attributes (DB Table Name: T_PO_HDR)
	private String srchCompanyCode;                  //DB Column Name: COMPANY_CODE
	private String srchStatus;                       //DB Column Name: STATUS
	private String srchPoNoFr;                       //DB Column Name: PO_NO
	private String srchPoNoTo;                       //DB Column Name: PO_NO
	private String srchSuplCodeFr;                   //DB Column Name: SUPL_CODE
	private String srchSuplCodeTo;                   //DB Column Name: SUPL_CODE
	private String srchBillContactPersonFr;          //DB Column Name: BILL_CONTACT_PERSON
	private String srchBillContactPersonTo;          //DB Column Name: BILL_CONTACT_PERSON
	private String srchBillAddr1Fr;                  //DB Column Name: BILL_ADDR1
	private String srchBillAddr1To;                  //DB Column Name: BILL_ADDR1
	private String srchBillAddr2Fr;                  //DB Column Name: BILL_ADDR2
	private String srchBillAddr2To;                  //DB Column Name: BILL_ADDR2
    private String srchPoDateFr;                     //DB Column Name: PO_DATE
    private String srchPoDateTo;                     //DB Column Name: PO_DATE

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Victor.zheng 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {srchPoNoFr = " + this.srchPoNoFr
			+ "\n, srchPoNoTo = " + this.srchPoNoTo + "}\n";

		String colStr = "COL: {srchSuplCodeFr = " + this.srchSuplCodeFr
			+ "\n, srchSuplCodeTo = " + this.srchSuplCodeTo
			+ "\n, srchBillContactPersonFr = " + this.srchBillContactPersonFr
			+ "\n, srchBillContactPersonTo = " + this.srchBillContactPersonTo
			+ "\n, srchBillAddr1Fr = " + this.srchBillAddr1Fr
			+ "\n, srchBillAddr1To = " + this.srchBillAddr1To
			+ "\n, srchBillAddr2Fr = " + this.srchBillAddr2Fr
			+ "\n, srchBillAddr2To = " + this.srchBillAddr2To + "}\n";

		String mandatoryStr = "{srchCompanyCode = " + this.srchCompanyCode
			+ "\n, srchStatus = " + this.srchStatus
			+ "}\n";

		return "toString() is:\n" + mandatoryStr + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for searching criterias
	////////////////////////////////////////////////////////////////////////////////

	public String getSrchCompanyCode() {
		return this.srchCompanyCode;
	}

	public String getSrchStatus() {
		return this.srchStatus;
	}

	public String getSrchPoNoFr() {
		return this.srchPoNoFr;
	}

	public String getSrchPoNoTo() {
		return this.srchPoNoTo;
	}

	public String getSrchSuplCodeFr() {
		return this.srchSuplCodeFr;
	}

	public String getSrchSuplCodeTo() {
		return this.srchSuplCodeTo;
	}

	public String getSrchBillContactPersonFr() {
		return this.srchBillContactPersonFr;
	}

	public String getSrchBillContactPersonTo() {
		return this.srchBillContactPersonTo;
	}

	public String getSrchBillAddr1Fr() {
		return this.srchBillAddr1Fr;
	}

	public String getSrchBillAddr1To() {
		return this.srchBillAddr1To;
	}

	public String getSrchBillAddr2Fr() {
		return this.srchBillAddr2Fr;
	}

	public String getSrchBillAddr2To() {
		return this.srchBillAddr2To;
	}

	public void setSrchCompanyCode(String srchCompanyCode) {
		this.srchCompanyCode = srchCompanyCode;
	}

	public void setSrchStatus(String srchStatus) {
		this.srchStatus = srchStatus;
	}

	public void setSrchPoNoFr(String srchPoNoFr) {
		this.srchPoNoFr = srchPoNoFr;
	}

	public void setSrchPoNoTo(String srchPoNoTo) {
		this.srchPoNoTo = srchPoNoTo;
	}

	public void setSrchSuplCodeFr(String srchSuplCodeFr) {
		this.srchSuplCodeFr = srchSuplCodeFr;
	}

	public void setSrchSuplCodeTo(String srchSuplCodeTo) {
		this.srchSuplCodeTo = srchSuplCodeTo;
	}

	public void setSrchBillContactPersonFr(String srchBillContactPersonFr) {
		this.srchBillContactPersonFr = srchBillContactPersonFr;
	}

	public void setSrchBillContactPersonTo(String srchBillContactPersonTo) {
		this.srchBillContactPersonTo = srchBillContactPersonTo;
	}

	public void setSrchBillAddr1Fr(String srchBillAddr1Fr) {
		this.srchBillAddr1Fr = srchBillAddr1Fr;
	}

	public void setSrchBillAddr1To(String srchBillAddr1To) {
		this.srchBillAddr1To = srchBillAddr1To;
	}

	public void setSrchBillAddr2Fr(String srchBillAddr2Fr) {
		this.srchBillAddr2Fr = srchBillAddr2Fr;
	}

	public void setSrchBillAddr2To(String srchBillAddr2To) {
		this.srchBillAddr2To = srchBillAddr2To;
	}

    public String getSrchPoDateFr() {
        return srchPoDateFr;
    }

    public void setSrchPoDateFr(String srchPoDateFr) {
        this.srchPoDateFr = srchPoDateFr;
    }

    public String getSrchPoDateTo() {
        return srchPoDateTo;
    }

    public void setSrchPoDateTo(String srchPoDateTo) {
        this.srchPoDateTo = srchPoDateTo;
    }

}
